﻿@model KPIS.GERP.Models.ICM.DeliveryNote

@{
    Layout = "~/Views/Shared/_EmptyLayout.cshtml";
    ViewBag.Title = "ตรวจรับพัสดุ";
    ViewBag.Descr = "กรอกรายการหลักการตรวจรับ";
}




@using (Html.BeginForm("Create", "DeliveryNote", FormMethod.Post, new { id = "form", @class = "form-horizontal" }))
{
       @Html.AntiForgeryToken()

    <div class="span12 block-button-menu-above">
        @Html.ButtonViewAll()
        @Html.ButtonSubmit()
    </div>

  
    @Html.Partial("_EditForm")
}
@section Scripts {
    

<script type="text/javascript" >

    //$('.date-picker').datepicker({ language: 'th-th', format: 'dd/mm/yyyy' });

    $("form").submit(function (e) {
        e.preventDefault();
        var currentForm = this;
        bootbox.confirm("ต้องการบันทึก ใช่หรือไม่?", function (result) {
            if (result) {
                currentForm.submit();
            }
        });
    });


    </script>
}